home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 25 / Cream of the Crop 25.iso / utility / ffe101.zip / ARCHIVES.SWG / 0001_ARC.pas next >
Pascal/Delphi Source File  |  1996-09-03  |  4KB  |  100 lines

  1. --------A-ARC-------------------------------
  2.  
  3. The  ARC  files  are archive files created  by  the SEA ARC program. The
  4. compression  has  been superceded by  more  recent compression programs.
  5. Similar  archives  can be created by  the  PAK and PkPAK programs. There
  6. have  been many variations and enhancements to the ARC format though not
  7. as many as to the TIFF format.
  8.  
  9. You  may have to use some (paranoid)  checks to ensure that you actually
  10. are  processing an ARC file, since other archivers also adopted the idea
  11. of  putting a 01Ah byte at offset 0, namely the Hyper archiver. To check
  12. if  you have a Hyper-archive, check the  next two bytes for "HP" or "ST"
  13. (or look below for "HYP"). Also the ZOO archiver also does put a 01Ah at
  14. the  start  of  the  file, see the  ZOO  entry  below. OFFSET Count TYPE
  15.  
  16. Description
  17. 0000h                   1 byte   ID=1Ah
  18. 0001h                   1 byte   Compression method (see table 0001)
  19. 0002h                  12 char   File name
  20. 000Fh                   1 dword  Compressed file size
  21. 0013h                   1 dword  File date in MS-DOS format (see table 0009)
  22. 0017h                   1 word   16-bit CRC
  23. 0019h                   1 dword  Original file size
  24.                                  ="SIZ"
  25. (Table 0001)
  26.  
  27. ARC compression types
  28.     0 - End of archive marker
  29.     1 - unpacked (obsolete) - ARC 1.0 ?
  30.     2 - unpacked - ARC 3.1
  31.     3 - packed (RLE encoding)
  32.     4 - squeezed (after packing)
  33.     5 - crunched (obsolete) - ARC 4.0
  34.     6 - crunched (after packing) (obsolete) - ARC 4.1
  35.     7 - crunched (after packing, using faster hash algorithm) - ARC 4.6
  36.     8 - crunched (after packing, using dynamic LZW variations) - ARC 5.0
  37.     9 - Squashed c/o Phil Katz (no packing) (var. on crunching)
  38.    10 - crushed (PAK only)
  39.    11 - distilled (PAK only)
  40. 12-19 -  to 19 unknown (ARC 6.0 or later) - ARC 7.0 (?)
  41. 20-29 - ?informational items? - ARC 6.0
  42. 30-39 - ?control items? - ARC 6.0
  43.   40+ - reserved
  44.  
  45. According  to  SEA's technical memo,  the  information and control items
  46. were  added  to  ARC  6.0. Information  items  use  the  same headers as
  47. archived  files,  although  the original file  size  (and  name?) can be
  48. ignored.
  49.  
  50. OFFSET              Count TYPE   Description
  51. 0000h                   2 byte   Length of header (includes "length"
  52.                                  and "type"?)
  53. 0002h                   1 byte   (sub)type
  54. 0003h                   ? byte   data
  55.  
  56. Informational item types as used by ARC 6.0 :
  57.  
  58. Block type    Subtype   Description
  59.    20                   archive info
  60.                 0       archive description (ASCIIZ)
  61.                 1       name of creator program (ASCIIZ)
  62.                 2       name of modifier program (ASCIIZ)
  63.  
  64.    21                   file info
  65.                 0       file description (ASCIIZ)
  66.                 1       long name (if not MS-DOS "8.3" filename)
  67.                 2       extended date-time info (reserved)
  68.                 3       icon (reserved)
  69.                 4       file attributes (ASCIIZ)
  70.  
  71.                         Attributes use an uppercase letter to signify the
  72.                         following:
  73.  
  74.                                 R       read access
  75.                                 W       write access
  76.                                 H       hidden file
  77.                                 S       system file
  78.                                 N       network shareable
  79.  
  80.    22                   operating system info (reserved)
  81.  
  82. (Table 0009)
  83.  
  84. Format  of  the  MS-DOS  time stamp  (32-bit)  The  MS-DOS time stamp is
  85. limited to an even count of seconds, since the count for seconds is only
  86. 5 bits wide.
  87.  
  88.   31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
  89.  |<---- year-1980 --->|<- month ->|<--- day ---->|
  90.  
  91.   15 14 13 12 11 10  9  8  7  6  5  4  3  2  1  0
  92.  |<--- hour --->|<---- minute --->|<- second/2 ->|
  93.  
  94. EXTENSION:ARC,PAK
  95. OCCURENCES:PC
  96. PROGRAMS:SEA ARC,PAK,PkPAK
  97. SEE ALSO:HYP,ZOO
  98. VALIDATION:FileSize="SIZ"
  99.  
  100.